package br.com.rubrol.webservice;

import javax.ws.rs.Path;

import org.hibernate.Query;
import org.hibernate.Session;

import br.com.rubrol.model.Cliente;

@Path("/cliente")
public class ClienteWS extends GenericWS<Cliente> {

	@Override
	protected Query getQuery(Session session, int codigo) {
		Query hql = session.createQuery("from Cliente where codigo=:cod");
		hql.setInteger("cod", codigo);

		return hql;
	}
}
